package com.example.module.ai.config;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

@Data
@Validated // @Valid 不行
@ConfigurationProperties(prefix = "spark-ai")
public class SparkAiProperties {

    @NotEmpty
    private String hostUrl;

    @NotEmpty
    private String appId;

    @NotEmpty
    private String apiSecret;

    @NotEmpty
    private String apiKey;

}
